const user = require('../db/user');

const loginDao = {
    async register(username, password) {
        let result = await user.addUser(username, password);
        return result;
    },
    async login(username, password) {
        let result = await user.checkPassword(username, password);
        return result;
    }
};

module.exports = loginDao;